Skip to content

Limit smp to 255 for libguestfish#4495

Merged
dustymabe merged 1 commit intocoreos:mainfrom
angelcerveraroldan:smp-limit
Mar 18, 2026
Merged

Limit smp to 255 for libguestfish#4495
dustymabe merged 1 commit intocoreos:mainfrom
angelcerveraroldan:smp-limit

Conversation

@angelcerveraroldan
Copy link
Member

libguestfs will fail with -set-smp v for v greater than 255. This can be seen in their source code:

https://github.com/libguestfs/libguestfs/blob/5011bea96da06878864149767650bcc41f425fb9/lib/handle.c#L916

libguestfs will fail with `-set-smp v` for `v` greater than 255.
This can be seen in their source code:

https://github.com/libguestfs/libguestfs/blob/5011bea96da06878864149767650bcc41f425fb9/lib/handle.c#L916
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

The pull request effectively addresses the libguestfs limitation of 255 vCPUs by introducing logic to cap the set-smp value. This is a good improvement to prevent potential failures when kola ncpu returns a higher value. However, there is a critical syntax error in the conditional statement that needs to be corrected for the limit to function as intended.

@angelcerveraroldan angelcerveraroldan added the jira for syncing to jira label Mar 18, 2026
Copy link
Member

@dustymabe dustymabe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dustymabe dustymabe merged commit eab17ee into coreos:main Mar 18, 2026
4 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

jira for syncing to jira

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants